<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<base href="__ROOT__/">
<title>{$projectname}</title>
<link href="./Public/Css/app.css" rel="stylesheet">
</head>

<body>
	<div id="app">
		<nav>
			<!-- 
			<div style="float: left;">
				<strong style="font-size: 18px;">后台管理</strong> <small>{$version}</small>
			</div>
			<div style="margin: 10px 0px 0px 100px; font-size: 16px;">
				<a href="./index.php/Home/Manager/mb_UserManager" class="nav-item">会员管理</a> <a
					href="./index.php/Home/Manager/mb_RechargeCenter" class="nav-item">充值中心</a> <a
					href="./index.php/Home/Manager/mb_Agent" class="nav-item">代理商</a> <a
					href="./index.php/Home/Manager/mb_GameManager" class="nav-item">游戏管理</a> <a class="nav-item">明牌之尊3</a>
				<a href="./index.php/Home/Manager/mb_AccountsManager" class="nav-item">账目管理</a> <a
					href="./index.php/Home/Manager/mb_SystemManager" class="nav-item">系统管理</a> <span
					style="font-size: 12px; margin-left: 30px;">在线玩家：0人</span> <span
					style="font-size: 12px; cursor: pointer;">刷新</span>
				<div style="float: right; margin-right: 100px;">
					五位码：{$managercode}，{$level} {$name} <a href="./index.php/Home/Manager/mb_Logout">退出</a>
				</div>
			</div>
			 -->
			 {$topbar}
		</nav>
		<hr style="margin: 3px 0px 0px;">
		<div style="margin: 20px 150px 0px;">
			<div>
				<a href="{$url}mb_Agent" class="router-link-active">
					<button	class="func func-activate">代理商列表</button>
				</a> 
				<a href="{$url}mb_AgentSetting" class="">
					<button class="func">代理商配置</button>
				</a>
			</div>
			<div style="margin-bottom: 5px;"></div>
			<div>
				<table style="font-size: 12px;">
				</table>
				<table border="1" width="100%" class="grid">
					<tr class="tbh">
						<th width="60" style="text-align: center;">AID</th>
						<th align="left" width="100">代理商</th>
						<th align="left" width="100">邀请码</th>
						<th align="left" width="80">登录账号</th>
						<th align="left" width="60">允许登录</th>
						<th align="left" width="60">账目显示</th>
						<th align="left" width="60">上分功能</th>
						<th align="left" width="80">剩余上分额度</th>
						<th align="left" width="150">加盟时间</th>
						<th>操作</th>
					</tr>
					{$table}
				</table>
				<button>
					<a href="{$url}mb_Agent">刷新</a>
				</button>
				<button>
					<a href="{$url}mb_AgentAdd">新增</a>
				</button>
				<br> <br>

				<div>
					<table border="1" width="100%" class="grid">
						<tr>
							<th width="80" class="tbt">代理商名称：</th>
							<td width="100">{$nick}</td>
							<th width="80" class="tbt">邀请码：</th>
							<td width="100">{$code}</td>
							<!-- 
							<th width="80" class="tbt">功能开通：</th>
							<td width="170">
								<label for="aa1">
									<input id="aa1" name="ame" type="radio" value="true" {$ispoint_0}>
										<span style="color: green;">允许上分</span>
								</label> 
								<label for="aa2">
									<input id="aa2" name="ame" type="radio" value="false" {$ispoint_1}>
										<span style="color: red;">禁止上分</span>
								</label>&nbsp;&nbsp;&nbsp;
								<code style="color: rgb(102, 102, 102); font-style: italic;"></code>
							</td>
							<td><button>保存</button></td>
							 -->
						</tr>
					</table>
					<br>
					<table>
						<tr>
							<td>17001666&nbsp;剩余上分额度：<span style="color: red;">{$coin}</span>币
							</td>
						</tr>
						<tr>
							<td>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=0&coin=1000">
									<button style="color: green;">上1千</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=0&coin=3000">
									<button style="color: green;">上3千</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=0&coin=5000">
									<button style="color: green;">上5千</button>
								</a>
								&nbsp;&nbsp;&nbsp;
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=0&coin=10000">
									<button style="color: green;">上1万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=0&coin=30000">
									<button style="color: green;">上3万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=0&coin=50000">
									<button style="color: green;">上5万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=0&coin=100000">
									<button style="color: green;">上10万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=0&coin=200000">
									<button style="color: green;">上20万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=0&coin=300000">
									<button style="color: green;">上30万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=0&coin=500000">
									<button style="color: green;">上50万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=0&coin=1000000">
									<button style="color: green;">上100万</button>
								</a>
								&nbsp;&nbsp;&nbsp;
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=2&coin=-1000">
									<button>下1千</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=2&coin=-3000">
									<button>下3千</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=2&coin=-5000">
									<button>下5千</button>
								</a>
								&nbsp;&nbsp;&nbsp;
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=2&coin=-10000">
									<button>下1万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=2&coin=-30000">
									<button>下3万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=2&coin=-50000">
									<button>下5万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=2&coin=-100000">
									<button>下10万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=2&coin=-200000">
									<button>下20万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=2&coin=-300000">
									<button>下30万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=2&coin=-500000">
									<button>下50万</button>
								</a>
								<a href="{$url}mb_AgentUpDownPoints?name={$agentname}&type=2&coin=-1000000">
									<button>下100万</button>
								</a>

								<!-- 
								<button style="color: green;">上3千</button>
								<button style="color: green;">上5千</button> &nbsp;&nbsp;&nbsp;
								<button style="color: green;">上1万</button>
								<button style="color: green;">上3万</button>
								<button style="color: green;">上5万</button>
								<button style="color: green;">上10万</button>
								<button style="color: green;">上20万</button>
								<button style="color: green;">上30万</button>
								<button style="color: green;">上50万</button>
								<button style="color: green;">上100万</button> &nbsp;&nbsp;&nbsp;
								<button>下1千</button>
								<button>下3千</button>
								<button>下5千</button> &nbsp;&nbsp;&nbsp;
								<button>下1万</button>
								<button>下3万</button>
								<button>下5万</button>
								<button>下10万</button>
								<button>下20万</button>
								<button>下30万</button>
								<button>下50万</button>
								<button>下100万</button>
								 -->
							</td>
						</tr>
					</table>
					<table border="1" width="100%" class="grid">
						<tr class="tbh">
							<th width="64" style="text-align: center;">NO.</th>
							<th width="50">类型</th>
							<th width="130">简述</th>
							<th width="80">冲前金额</th>
							<th width="50">金额</th>
							<th width="80">冲后金额</th>
							<th width="140">充值时间</th>
							<th width="80">服务员</th>
							<th>备注</th>
						</tr>
						<!-- 
						<tr>
							<td style="text-align: center;">1</td>
							<td style="font-weight: bold;"><span style="color: green;">上分</span></td>
							<td>上分1000币</td>
							<td>0</td>
							<td>1000</td>
							<td>1000</td>
							<td>2019-01-15 11:28:30</td>
							<td>TWXH</td>
							<td></td>
						</tr>
						 -->
						 {$logtable}
						<tr>
							<td></td>
							<td></td>
							<td></td>
							<td></td>
							<td align="right" style="font-weight: bold; color: green;">总上分：</td>
							<td style="font-weight: bold; color: green;">{$totalupcoins}</td>
							<td></td>
							<td></td>
							<td></td>
						</tr>
						<tr>
							<td></td>
							<td></td>
							<td></td>
							<td></td>
							<td align="right" style="font-weight: bold; color: red;">总下分：</td>
							<td style="font-weight: bold; color: red;">{$totaldowncoins}</td>
							<td></td>
							<td></td>
							<td></td>
						</tr>
						<tr>
							<td colspan="4"></td>
							<td align="right" style="font-weight: bold;">总计：</td>
							<td style="font-weight: bold;">{$totalcoins}</td>
							<td></td>
							<td></td>
							<td></td>
						</tr>
					</table>
					<button>刷新</button>
				</div>
			</div>

		</div>
	</div>
</body>
</html>

